﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>JsonIndex</title>
</head>
<body>
    <div>
        <input type="button" id="btn_execute" value="执行" />
    </div>

    <script src="~/Content/js/jquery-1.8.2.js"></script>
    <script src="~/Content/js/tjzheng.js"></script>
    <script type="text/javascript">
        $("#btn_execute").click(function () {
            //var objAjaxEntity = new AjaxEntity();
            //var fooEntity = { foo: "foo", zoo: "zoo", bar: "bar", baz: "baz" };
            //$.extend(true, fooEntity, { zooEntity: { zoo: "zooEntity.zoo", bar: "zooEntity.bar", baz: "zooEntity.baz" } });
            //objAjaxEntity.data = JSON.stringify(fooEntity);
            //objAjaxEntity.url = "/Home/PostJson";
            //objAjaxEntity.contentType = "application/json";//Json与Form的差异，若MVC能解析Json，此设置是必须的
            //objAjaxEntity.executeSuccess = function (data) {
            //    alert(data);
            //};
            //objAjaxEntity.execute();

            // jsonp 获取 json 数据：
            $.ajax({
                dataType: "jsonp",
                url: 'http://192.168.1.132:8080/QiNiuCore/GetUpLoadToken',
                success: function (data) {
                    // 处理数据的代码...
                }
            });
        });
    </script>
</body>
</html>
